/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.inheritance.conf;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import za.ac.cput.inheritance.inheritance.inheritance;
import za.ac.cput.inheritance.inheritance.impl.Lecturer;
/**
 *
 * @author Dwayne
 */
@Configurable
public class AppConfig
{
    @Bean(name = "Lec")
    public inheritance inheritance() 
    {
        return new Lecturer();
    }

    @Bean
    public inheritance newComp() 
    {
        return new Lecturer();
    }

    @Bean(name = "Nlec")
    public inheritance Lecturer()
    {
        return new Lecturer();
    }
}
